package com.xinqi.modules.exam.paper.dto.rsp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 课程测评-响应对象-学生测评列表
 *
 * @author: linkai
 * @date: 2023/07/02
 */
@Data
@Schema(description = "课程测评-各种状态数量")
public class CourseExamPaperStatusNumDTO implements Serializable {

    @Schema(description = "总数", example = "")
    private Integer totalNum;

    @Schema(description = "已发布", example = "")
    private Integer releasedNum;

    @Schema(description = "未发布", example = "")
    private Integer notReleaseNum;

    @Schema(description = "进行中", example = "")
    private Integer underWayNum;

    @Schema(description = "未开始", example = "")
    private Integer notStartNum;

    @Schema(description = "已结束", example = "")
    private Integer endedNum;

    public void init() {
        this.notReleaseNum = totalNum - releasedNum;
    }
}
